/*
* Copyright (C) 2012  lidp.
*
* Contact: lidp <openser@yeah.org>
*	
* This file is part of Open Source Peasant Framework.
*
* Peasant is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*	
* You should have received a copy of the GNU General Public License
* along with Peasant.
*
*/

#ifndef __PST_THREAD_H__
#define __PST_THREAD_H__

#include "pst_config.h"

PST_BEGIN_EXTERN_C

PST_API int pst_thread_create(void** id, void*(*start_runtine), void *data);
PST_API int pst_thread_join(void** id);
PST_API void pst_thread_sleep(uint64_t  millsecs);


PST_END_EXTERN_C

#endif
